<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#main{
				overflow: hidden;
				border: 1px solid blue;
			}
			#main div{
				height: 100px;
				width: 100px;
				margin: 5px;
				border: 1px solid red;
				float: left;
			}
			p#p1{
				border: 2px solid blue;
			}
		</style>
	</head>
	<body>
		<!--伪类样式清除浮动-->
		<div id="main" >
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
			<div>10</div>
		</div>
		<p id="p1">
		明天是周一，记得上课
		</p>
	</body>
</html>
